package sz.com.postoffice.jxyzwgcase.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import sz.com.postoffice.jxyzwgcase.dao.BaseDao;
import sz.com.postoffice.jxyzwgcase.dao.app.SigninRecordDao;
import sz.com.postoffice.jxyzwgcase.pojo.SigninRecord;
import sz.com.postoffice.jxyzwgcase.service.SigninRecordService;

import javax.annotation.Resource;
import java.util.List;


/**
 * @ClassName SigninRecordServiceImpl
 * @Deacription 打卡逻辑处理层
 * @Author jmx
 * @Date 2020/11/20 18:00
 * @Version 1.0
 **/
@Service
@Slf4j
public class SigninRecordServiceImpl extends BaseServiceImpl<SigninRecord> implements SigninRecordService {

    @Resource
    private SigninRecordDao signinRecordDao;
    @Override
    protected BaseDao<SigninRecord> getMapper() {
        return this.signinRecordDao;
    }

    @Override
    public Integer getSigninNum(List<String> deptCodes, String startTime, String endTime) {
        return signinRecordDao.getSigninNum(deptCodes, startTime, endTime);
    }

}
